package com.jiexin.dao;

import com.jiexin.model.PlmWorkFlowStatus;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

public interface PlmWorkFlowStatusMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PlmWorkFlowStatus record);

    int insertSelective(PlmWorkFlowStatus record);

    PlmWorkFlowStatus selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlmWorkFlowStatus record);

    int updateByPrimaryKey(PlmWorkFlowStatus record);

    int countByNameAndWorkFlowId(@Param("workFlowId") int workFlowId, @Param("name") String name, @Param("id") Integer id);

    List<PlmWorkFlowStatus> getWorkFlowStatusByWorkFlowId(@Param("workFlowId")  int workFlowId);

    int countByWorkFlowId(@Param("workFlowId") int workFlowId);
}